package com.redis.redisdemo_20230217;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Bean;
import org.springframework.core.env.Environment;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.core.RedisTemplate;

/**
 * @author xiaojf
 */
@SpringBootApplication
@Slf4j
public class RedisDemo20230217Application {

    public static void main(String[] args) {

        SpringApplication app = new SpringApplication(RedisDemo20230217Application.class);
        Environment env = app.run(args).getEnvironment();
        log.info("启动成功！！");
        log.info("redisDemo地址: \thttp://127.0.0.1:{}", env.getProperty("server.port"));

    }

}
